#include<stdio.h>
#include"dslib/include/SLtable.h"
#include"dslib/include/DouList.h"

int main()
{
    printf("这是顺序表：\n");
    SL sl;
    SLInit(&sl);
    SLPushBack(&sl, 1);
    SLPushBack(&sl, 4);
    SLPushBack(&sl, 2);
    SLPushBack(&sl, 3);
    SLPushBack(&sl, 8);
    SLInsert(&sl, 4, 5);
    SLPrint(&sl);
    SLDestroy(&sl);

    printf("这是链表\n");
    DLNode* dl = InitDLNode();
    DLPushBack(dl, 5);
    DLPushBack(dl, 2);
    DLPushBack(dl, 0);
    DLPushFront(dl, 4);
    DLPushFront(dl, 1);
    DLPushFront(dl, 3);
    DLPushFront(dl, 1);
    DLNodePrint(dl);
    DestroyDLNode(dl);
    return 0;
}
